// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import VueRouter from 'vue-router';
import VueResource from 'vue-resource';
import routeConfig from './router-config';

import store from './store.js';

//加载路由中间件
Vue.use(VueRouter);
Vue.use(VueResource);

//定义路由
const router = new VueRouter({
  routes: routeConfig
});

/* eslint-disable no-new */
new Vue({
  router,
  store,
  el: '#app',
  render:h => h(App)
})
